package com.sunlands.qdcy.tongzhuo.feign;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @author gaoyanfeng
 * @create 2019-04-26 13:23
 **/
@ApiModel(value = "消息VO")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MessageVO {


    @ApiModelProperty("业务id，可能是群id，也可能是道友id")
    String businessId;

    @ApiModelProperty("内容")
    String content;

    @ApiModelProperty("是否群发")
    Boolean isGroupSend = false;

    @ApiModelProperty("标题")
    String title;

    @ApiModelProperty("消息类型")
    String type;

    @ApiModelProperty("不需要发送的用户id集合")
    Collection<Long> excludeUserIds;

    @ApiModelProperty("接受消息的用户id集合")
    Collection<Long> userIds;

    @ApiModelProperty("拓展属性")
    Map<String, Object> extras;
}
